Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(slots-footer-index) : 通过配置 icon的值为图片URL来项显示图标 #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

huangjihua
Copy link
Contributor

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • 💄 style
  • 🔨 chore
  • 📝 docs

🔀 变更说明 | Description of Change

通过配置colunms数组对象中的icon字段,值为图片地址时,自动转为图片元素,正常显示图标。图标支持( png | jpeg | jpg | gif | svg | webp)扩展名。

📝 补充信息 | Additional Information

配置项数据:

  footerConfig: {
    columns: [
     // ......
      {
        icon: 'https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg',
        title: '更多产品',
        items: [
          {
            icon: 'https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg',
            title: '语雀',
            url: 'https://yuque.com',
            description: '知识创作与分享工具',
            openExternal: true,
          }
        ]
      }
    ],
  }

测试结果:
image

@vercel
Copy link

vercel bot commented Aug 26, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @arvinxx on Vercel.

@arvinxx first needs to authorize it.

@huangjihua huangjihua changed the title Feature/slots footer index 通过配置 icon的值为图片URL来项显示图标 ✨ Feature/slots footer index 通过配置 icon的值为图片URL来项显示图标 Aug 26, 2023
@huangjihua huangjihua changed the title ✨ Feature/slots footer index 通过配置 icon的值为图片URL来项显示图标 ✨ feat(slots-footer-index) 通过配置 icon的值为图片URL来项显示图标 Aug 26, 2023
@huangjihua huangjihua changed the title ✨ feat(slots-footer-index) 通过配置 icon的值为图片URL来项显示图标 ✨ feat(slots-footer-index) : 通过配置 icon的值为图片URL来项显示图标 Aug 26, 2023
@arvinxx
Copy link
Owner

arvinxx commented Sep 17, 2023

@huangjihua rebase 一下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants